import { createPinia, defineStore } from 'pinia'

export function setupStore(app) {
    app.use(createPinia());
}

export const useStore = defineStore({
    id: 'main',
    state: () => ({
        userInfo: null,
    }),
    getters: {
    },
    actions: {
        setUserInfo(data) {
            this.userInfo = data;
        },
    },
});